<?php

class Model_Api_Importer extends Ac_Model
{
    
   const TYPE = 6;
   
   /*
    * This is a capped collection. must be created prior to use it
    * db.createCollection("search", {capped:true, size:100000})
    */
   protected static  $_collection = 'importer';

    /**
     *
     * @var array define the requirements for this model
     */
    protected static $_requirements = array(
     //   'em'  => array('Required', 'Validator:EmailAddress'), //Email
    );

    protected static $_transcript = array(
        '_id'  => '_id',
        'name'   => 'user',
        'count'   => 'url',
        'startdate'   => 'startdate',
        'enddate' => 'enddate',
        'time' => 'time',
    );

    public function __construct($data = array(), $config = array())
	{
        $config['collection'] = 'importer';
        self::ensureIndex(array('name' => 1));
        parent::__construct($data, $config);
    }
}